import {
    service
} from "./request/request";
/**
 * 登录
 */
export function toLogin(param) {
    return service({
        url: `/V1.0.0/web_doctor/phar/static/login`,
        method: 'post',
        data: {
            ...param
        },
        params: {
            ...param
        }
    })
}

/**
 * 获取验证码
 */
export function getPhoneCode(param) {
    return service({
        url: `/V1.0.0/web_doctor/static/sendCode`,
        method: 'post',
        data: {
            ...param
        },
        params: {
            ...param
        }
    })
}


/**
 * 获取字典
 */
export function getDict(param) {
    return service({
        url: `/V1.0.0/web_doctor/dictionary/static/findUsageAndDosage`,
        method: 'get',
        data: {
            ...param
        },
        params: {
            ...param
        }
    })
}